package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.BaseBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 忘记登录密码BASE
 */

public class ForgetPasswordBase {

    public interface IView {

        /**
         * 设置新的登录密码成功
         * @param s
         * @param addDABean
         */
        void AddSetNewPwsSuccessMsg(String s, BaseBean addDABean);

        /**
         * 验证码发送成功
         * @param s
         * @param deleteDABean
         */
        void AuthCodeSuccessMsg(String s, BaseBean deleteDABean);

        void showErrorMsg(String s);
    }

    public interface IPresenter {

        /**
         * 发送验证码
         */
        void deliverSendAuthCodeData(RequestBody requestBody);

        /**
         * 设置新的支付密码
         */
        void deliverSetNewPwdData(RequestBody requestBody);
    }

    public interface IModel {

        /**
         * 发送验证码
         */
        Subscription getSendAuthCodeData(RequestBody requestBody, ResponseCallback<BaseBean> callback);

        /**
         * 设置新的支付密码
         */
        Subscription getSetNewPwdData(RequestBody requestBody, ResponseCallback<BaseBean> callback);
    }

}
